<admintpl file="header" />
</head>
<body class="J_scroll_fixed">
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:U('Tui/News/index')}" target="_self">新闻公告管理</a></li>
			<li><a href="{:U('Tui/News/add')}" target="_self">添加公告</a></li>
			</ul>
<!--		<form class="well form-search" method="get" action="{:U('Agent/Agent/index')}">
			<div class="search_type cc mb10">
				<div class="mb10">
					<span class="mr20">
						渠道名： 
						<select class="select_2" name="roleid" id="selected_id">
							<foreach name="roles"  key="k" item="vo">
								<php>$r_select=$k==$roleid ?"selected":"";</php>
								<option value="{$k}"{$r_select}>{$vo}</option>
							</foreach>
						</select>
						 &nbsp;&nbsp;
						渠道账号：
						<input type="text" name="agentname" style="width: 200px;" value="{$agentname}" placeholder="请输入渠道账号...">
						&nbsp;&nbsp; 
						渠道名称：
						<input type="text" name="nickname" style="width: 200px;" value="{$nickname}" placeholder="请输入渠道名称...">
						&nbsp;&nbsp;
						<input type="submit" class="btn btn-primary" value="搜索" />
					</span>
				</div>
			</div>
		</form>-->

		<form class="js-ajax-form" action="" method="post">
			<table class="table table-hover table-bordered table-list">
				<thead>
					<tr>
						<th width="20">ID</th>                                                                                               
						<!--<th width="50">作者</th>--> 
                                                <th width="300">标题</th>
						<th width="50">发布时间</th>
						<th width="60">操作</th>
					</tr>
				</thead>
				<foreach name="news" item="vo">
				<tr>
					<td>{$vo.id}</td>                                                                              
					<!--<td>{$vo.author_id}</td>-->
                                        <td>{$vo.title}</td>
					<td><?php echo date("Y-m-d H:i:s",$vo['create_time']); ?></td>                                        
					<td>                                           
                                            <a href="{:U('Tui/news/edit',array('id'=>$vo['id']))}" >编辑</a> | 
                                            <a href="{:U('Tui/news/delete_post',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn"  data-msg="确定要删除吗？">删除</a>                                               
                                        </td>
				</tr>
				</foreach>				
			</table>
			<div class="pagination">{$Page}</div>
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>